import request from '@/utils/request'

 export async function getList(){
  return await request({
    url:'/inquiry/mine/list',
    method:'get'
  })
}

export function Inquiryidaa(inquiryDemandNumber,auditTableNumber) {
  return request({
    url: '/inquiry/mine/selId/'+inquiryDemandNumber+'/audit/'+auditTableNumber,
    method: 'get',

  })
}
export function listInquiry(query) {
    return request({
      url: '/inquiry/mine/'+query,
      method: 'get',
    })

}
export async function insertQuotation(query,as){
  return await request({
    url:'/inquiry/mine/quotation',
    method:'put',
    data:{"query":query,"as":as}
  })
}

export  function selectproduct(data){
  return request({
    url:'/inquiry/mine/pro/'+data,
    method:"get"
  })
}
export async function updateproduct(date,as){
   return await request({
    url:'/inquiry/mine/updatepro',
    method:'post',
    data:{"date":date,"as":as}
  })

}
export function selectQuo(data){
  return request({
    url:'/inquiry/mine/selQuo/'+data,
    method:"get"
  })
}
export async function updateAu(aaa){
  return await  request({
    url:'/inquiry/mine/updAudit',
    method:'put',
    data:aaa
  })
}

export function updateAuditRequest(data){
  return request({
    url:'/inquiry/mine/updateAuditRequest',
    method:"put",
	data: data
  })
}


export function updateRequest(data){
  return request({
    url:'/inquiry/mine/updateRequest',
    method:"put",
	data: data
  })
}

